package Day03_java方法.java13_方法调用;
public class 比大小方法 {
    public static void main(String[] args) {
        int max = max(10,10);
        System.out.println(max);
    }
    //比大小
    public static int max(int num1,int num2){
        int result = 0;
        if (num1 == num2){
            System.out.println("num == num2");
            return 0;//终止方法
        }
        if (num1>num2){
            result =  num1;
        }else {
            result =  num2;
        }
        return result;
    }
}
